package net.love5z.web.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.love5z.web.common.utils.ServletUtils;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class IndexController {

    @RequestMapping(value = "/", method = RequestMethod.GET)
    public void index(ModelMap map, HttpServletRequest request, HttpServletResponse response) {
        try {
            response.sendRedirect(ServletUtils.getBaseUrl(request) + "/s/");
        } catch (IOException e) {
        }
    }

}
